/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.Collections;
/*     */ import java.util.Iterator;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import net.minecraft.nbt.NBTBase;
/*     */ import net.minecraft.nbt.NBTTagCompound;
/*     */ import net.minecraft.nbt.NBTTagList;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class nv
/*     */ {
/*     */   private NBTTagCompound q;
/*     */   private yo<oy> g;
/*     */   
/*     */   public nv(NBTTagCompound nBTTagCompound) {
/*  25 */     this.q = nBTTagCompound;
/*  26 */     z();
/*     */   }
/*     */   
/*     */   public yo<oy> v() {
/*  30 */     return this.g;
/*     */   }
/*     */   
/*     */   public boolean z(yo<oy> yo1) {
/*  34 */     return (yo1 != this.g);
/*     */   }
/*     */   
/*     */   public boolean v(yo<oy> yo1) {
/*  38 */     return (yo1 != null && yo1 != this.g && v(yo1, this.g));
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void z(yo yo1) {
/*  64 */     Collections.sort(yo1.v(), qz.s);
/*  65 */     for (yo<oy> yo2 : (Iterable<yo<oy>>)yo1.v())
/*  66 */       z(yo2); 
/*     */   }
/*     */   
/*     */   public void v(yo<oy> yo1) {
/*  70 */     NBTBase nBTBase = ((oy)yo1.v()).v();
/*  71 */     if (nBTBase instanceof NBTTagCompound) {
/*  72 */       Map<String, NBTBase> map = ur.v((NBTTagCompound)nBTBase);
/*  73 */       for (Map.Entry<String, NBTBase> entry : map.entrySet()) {
/*  74 */         NBTBase nBTBase1 = (NBTBase)entry.getValue();
/*  75 */         yo<oy> yo2 = new yo<>(yo1, new oy((String)entry.getKey(), nBTBase1));
/*  76 */         yo1.v(yo2);
/*  77 */         v(yo2);
/*     */       }
/*     */     
/*  80 */     } else if (nBTBase instanceof NBTTagList) {
/*  81 */       NBTTagList nBTTagList = (NBTTagList)nBTBase;
/*  82 */       for (int i = 0; i < nBTTagList.func_74745_c(); i++) {
/*  83 */         NBTBase nBTBase1 = ur.v(nBTTagList, i);
/*  84 */         yo<oy> yo2 = new yo<>(yo1, new oy(nBTBase1));
/*  85 */         yo1.v(yo2);
/*  86 */         v(yo2);
/*     */       } 
/*     */     } 
/*     */   }
/*     */   
/*     */   public NBTTagCompound v() {
/*  92 */     NBTTagCompound nBTTagCompound = new NBTTagCompound();
/*  93 */     v(this.g, nBTTagCompound);
/*  94 */     return nBTTagCompound;
/*     */   }
/*     */   
/*     */   public void v(yo yo1, NBTTagCompound nBTTagCompound) {
/*  98 */     for (yo<oy> yo2 : (Iterable<yo<oy>>)yo1.v()) {
/*  99 */       NBTBase nBTBase = ((oy)yo2.v()).v();
/* 100 */       String str = ((oy)yo2.v()).v();
/* 101 */       if (nBTBase instanceof NBTTagCompound) {
/* 102 */         NBTTagCompound nBTTagCompound1 = new NBTTagCompound();
/* 103 */         v(yo2, nBTTagCompound1);
/* 104 */         nBTTagCompound.func_74782_a(str, (NBTBase)nBTTagCompound1); continue;
/* 105 */       }  if (nBTBase instanceof NBTTagList) {
/* 106 */         NBTTagList nBTTagList = new NBTTagList();
/* 107 */         v(yo2, nBTTagList);
/* 108 */         nBTTagCompound.func_74782_a(str, (NBTBase)nBTTagList); continue;
/*     */       } 
/* 110 */       nBTTagCompound.func_74782_a(str, nBTBase.func_74737_b());
/*     */     } 
/*     */   }
/*     */   
/*     */   public void v(yo yo1, NBTTagList nBTTagList) {
/* 115 */     for (yo<oy> yo2 : (Iterable<yo<oy>>)yo1.v()) {
/* 116 */       NBTBase nBTBase = ((oy)yo2.v()).v();
/* 117 */       if (nBTBase instanceof NBTTagCompound) {
/* 118 */         NBTTagCompound nBTTagCompound = new NBTTagCompound();
/* 119 */         v(yo2, nBTTagCompound);
/* 120 */         nBTTagList.func_74742_a((NBTBase)nBTTagCompound); continue;
/* 121 */       }  if (nBTBase instanceof NBTTagList) {
/* 122 */         NBTTagList nBTTagList1 = new NBTTagList();
/* 123 */         v(yo2, nBTTagList1);
/* 124 */         nBTTagList.func_74742_a((NBTBase)nBTTagList1); continue;
/*     */       } 
/* 126 */       nBTTagList.func_74742_a(nBTBase.func_74737_b());
/*     */     } 
/*     */   }
/*     */   
/*     */   public void v() {
/* 131 */     v(this.g, 0);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public List<String> v() {
/* 141 */     List<String> list = new ArrayList();
/* 142 */     v(list, this.g, 0);
/* 143 */     return list;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public static String v(String a, int i) {
/* 153 */     StringBuilder stringBuilder = new StringBuilder(i + 1);
/* 154 */     for (int j = 0; j < i; j++)
/* 155 */       stringBuilder.append(a); 
/* 156 */     return stringBuilder.toString();
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\nv.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */